package com.tn.controller.alarm.common.model;

import com.tn.controller.alarm.common.constants.Constants;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @program: tn_aucy_java
 * @description:
 * @author: yangjiayao
 * @create: 2021-11-12 15:26
 */
@Getter
@Setter
@ToString
public class OutputVO<T> {
    /**
     * 状态码
     */
    private  int status = Constants.OtherSys.STATUS.SUCCESS.getCode();

    /**
     * 消息
     */
    private String info = Constants.OtherSys.STATUS.SUCCESS.getMessage();

    /**
     * 具体数据
     */
    private T data;

    /**
     * 无参构造
     */
    public OutputVO() {
        super();
    }

    /**
     * 构造方法
     *
     * @param data
     */
    public OutputVO(T data) {
        super();
        this.data = data;
    }
}
